# import sys , os
# base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# sys.path.append(base_dir)
# 没有把当前项目加入到PYTHONPATH环境变量

from Strategy.duck import *

if __name__ == "__main__":
    mallardDuck = MallardDuck(FlyWithWings(), Quack())
    mallardDuck.performQuack()
    mallardDuck.performFly()

    modelDuck = ModelDuck(FlyNoWay(), Quack())
    modelDuck.performFly()
    modelDuck.flyBehavior = FlyRocketPowered()
    modelDuck.performFly()